<?php


namespace app\models\user;


use think\Model;
use think\model\relation\HasOne;

class DetailedIntegralModel extends Model
{
    protected $name = 'detailed_integral';
    protected $autoWriteTimestamp = true;

    public function user(): HasOne
    {
        return $this->hasOne(UserModel::class, 'id', 'user_id');
    }
}